//门店小程序
import $http from "@/ajax/http.js";

export const personal_store = {
	data() {
		return {
			userRoles: '6',
			token: '',
			roles: '',
			account: '',
			income: ''
		}
	},
	onLoad(options) {
		this.token = wx.getStorageSync('token');
		this.roles = wx.getStorageSync('roles');
		this.init();
	},
	methods: {
		init() {
			$http.request({
				header: {
					Authorization: this.token,
				},
				url: '/store/my/getSumInCome',
				method: "GET",
			}).then((res) => {
				this.account = res.memberName
				this.income = res.sumInCome
				console.log(res, "门店诊所我的");
			})
		},

		uploading() {
			uni.navigateTo({
				url: "/pages/business/invoice/index"
			})
		}

	}
}